﻿
using System;
using System.Threading;
using System.ComponentModel;
namespace OtherDevice
{
    [Description("平行光管_DPHRS002")]
    public class EVATA : LightCtrlBase
    {
        public EVATA(string strName) : base(strName)
        {
            controlFrom = new XNCLightCtrl();
        }
        public override int Get(int channel)
        {
            return 0;
        }
        public override bool Set(int channel, int value)
        {
            try
            {
                SendData($"set0{channel} {value}");
                return true;

            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show($"光源设置失败{ex}");
                return false;
            }
        }


    }
}